package com.service;

import com.github.pagehelper.PageInfo;
import com.pojo.Owners;
import com.vo.OwnersVo;

import java.util.List;

public interface OwnersService {
    int selectbyname1(String name);

    int selectbyname(String name);

    String selectphonebyname(Integer ownerid);
    /**
     * 添加
     */
    int insertSelective(Owners record);
    /**
     * 根据身份证号查询数量
     */
    Owners selectownerBycardno(String cardno);
    /**
     * 修改isno根据身份证号
     */
    int updateIsnoBycardno(int id,int isno);
    /**
     * 查询业主信息
     */
    public PageInfo<Owners> selectownerall(OwnersVo ownersVo);
    /**
     * 根据手机号查询id
     */
    public Owners selectidByphone(String phone);


    public Owners selectOwnersByName(String ownername);
    public Owners selectOwnerById(Integer id);

    /**
     * 根据plotid查询总人数
     */
    public int selecttotalownerByplotid(Integer plotid);

    /***
     * 根据电话查询业主
     * @param phone
     * @return
     */
    public Owners selectOwnerByPhone(String phone);
    /***
     * 查询所有业主
     * @return
     */
    public List<Owners> selectAllOwner();


    /*public List<Owners> selectOwnerHaveCar(List<Integer> ownerid);*/
    /***
     * 查询有车位的业主
     * @return
     */
    public List<Owners> selectOwnerHaveCar();

    /**
     * 根据姓名查询id
     */
    public List<Integer> selectidbyownername(String name);

}
